<tabset ng-if="sourceData.currentIndex!=null"> 
<tab> 
<tab-heading> <i class="glyphicon glyphicon-fire"></i> 鐗╂枡</tab-heading> <br>

<form class="form-horizontal">
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鐗╂枡缂栫爜</label>
				<div class="col-sm-8">
					<div class="input-group">
						<input type="text" class="form-control" data-ng-model="sourceData.rows[sourceData.currentIndex].itemNo.value" data-ng-disabled="true" /> 
						<span class="input-group-btn">
							<button class="btn btn-default btn-sm" data-ng-disabled="sourceData.readonly();" data-ng-click="itemClick()">
								<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
							</button>
						</span>
					</div>
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鐗╂枡鍚嶇О</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].itemName.value"
						data-ng-disabled="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">瑙勬牸</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].itemProperty.value"
						data-ng-disabled="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">浠舵暟</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].pieceQuantity.value"
						name="pieceQuantity" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">浠撳簱浠ｇ爜</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].storageNo.value"
						name="storageNo" disabled required />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">浠撳簱</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].storageName.value"
						name="storageName" disabled />
				</div>
			</div>
		</div>

		<div class="col-sm-6">
			<div class="form-group form-group-sm">
				<label class="col-sm-2 control-label">搴撳瓨鍦�</label>
				<div class="col-sm-10">
					<div class="input-group">
						<input type="text" class="form-control"
							data-ng-model="sourceData.rows[sourceData.currentIndex].floorNo.value"
							data-ng-readonly="true" /> 
							<span class="input-group-btn">
							<button class="btn btn-default btn-sm"
								data-ng-disabled="sourceData.readonly();"
								data-ng-click="toClick()">
								<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
							</button>
						</span>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div class="row" ng-hide="sourceData.rows[sourceData.currentIndex].batchNo.value=='********************'">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鐢熶骇鎵瑰彿</label>
				<div class="col-sm-8">
					<div class="input-group">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].batchNo.value"
						data-ng-readonly="true" 
						data-ng-disabled="sourceData.rows[sourceData.currentIndex].batchNo.value=='********************'"
						/>
						<span class="input-group-btn">
							<button class="btn btn-default btn-sm"
								data-ng-disabled="sourceData.readonly();"
								data-ng-click="triggerBatchNoClick($event)">
								<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
							</button>
						</span>
					</div>
				</div>
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group form-group-sm">
				<label class="col-sm-2 control-label">鎵瑰彿璇存槑</label>
				<div class="col-sm-10">
						<input type="text" class="form-control"
							data-ng-model="sourceData.rows[sourceData.currentIndex].batchDescribe.value"
							data-ng-readonly="sourceData.readonly();" 
							data-ng-disabled="sourceData.rows[sourceData.currentIndex].batchNo.value=='********************'"
							/> 
				</div>
			</div>
		</div>
	</div>
</form>

</tab>


<tab ng-hide="true"> 

<tab-heading> <i class="glyphicon glyphicon-flash"></i> 搴忓彿</tab-heading> <br>

<form class="form-horizontal">
	<div class="row">
		<div class="col-sm-12">
			<div class="form-group">
				<label class="col-sm-2 control-label">搴忓彿鍒楄〃</label>
				<div class="col-sm-10">
					<modal-edit target-data="sourceData" target-value="storeNo" row-index="sourceData.currentIndex"></modal-edit>				
				</div>
			</div>
		</div>
	</div>
</form>

</tab>

<tab select="alertMe()"> <tab-heading> 鏁伴噺 </tab-heading> <br>

<form class="form-horizontal">
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">璁￠噺鍗曚綅</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].unitName.value"
						name="unitName" disabled />
				</div>
			</div>
		</div>

		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鏁伴噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].itemAmount.value"
						name="itemAmount" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<!-- 
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍏ュ簱鏁伴噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].accountQuantityI.value"
						name="accountQuantityI" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍑哄簱鏁伴噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].accountQuantityO.value"
						name="accountQuantityO" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		 -->
	</div>
</form>

</tab> 
<tab ng-if="sourceData.rows[sourceData.currentIndex].billType.value=='CBKZ'"> <tab-heading> 鎴愭湰</tab-heading> <br>

<form class="form-horizontal">
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍗曚綅鏉愭枡</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].materialAmountPer.value"
						data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍗曚綅浜哄伐</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].workingAmountPer.value"
						data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍗曚綅鍒惰垂</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].manufactAmountPer.value"
						data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍗曚綅鍔犲伐</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].processAmountPer.value"
						data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鏉愭枡鎴愭湰</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].materialAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">浜哄伐鎴愭湰</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].workingAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍒堕�犺垂鐢�</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].manufactAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍔犲伐璐圭敤</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].processAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍗曚綅鎴愭湰</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].costingAmountPer.value"
						data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鎴愭湰鍚堣</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].costingAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
	</div>
</form>

</tab> 
<tab> <tab-heading> 璐ㄩ噺妫�楠� </tab-heading> <br>

<form class="form-horizontal">
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">妫�楠屾柟寮�</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].qualityTypeLabel.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">妫�楠岀粨鏋�</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].qualityStatusLabel.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">妫�楠屾鏁�</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].checkoutTimes.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">澶嶆澶╂暟</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].checkoutAgainDays.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍒拌揣鏁伴噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].arriveAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鎹熻�楁暟閲�</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].ullageAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鎶ュ簾鏁伴噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].wasterAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">璁′环鏁伴噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].priceAmount.value"
						data-ng-readonly="true" />
				</div>
			</div>
		</div>
	</div>
</form>

</tab> 
<tab> <tab-heading> 淇濊川鏈� </tab-heading> <br>

<form class="form-horizontal">
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">淇濊川鏈�</label>
				<div class="col-sm-8">
					<input type="checkbox" class="form-control" readonly="readonly"
						data-ng-model="sourceData.rows[sourceData.currentIndex].qualityPeriod.value"
						bootstrap-switch data-size="small"
						on-color="danger" off-color="" 
						on-text="宸插惎鐢�" off-text="鏈惎鐢�"
						data-ng-true-value="1" data-ng-false-value="0">
				</div>
			</div>
		</div>
	</div>
									<div class="row">
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">鐢熶骇鏃ユ湡</label>
												<div class="col-sm-8">
														<input type="text" class="form-control" simple-datepicker orientation="top auto"
															data-ng-model="sourceData.rows[sourceData.currentIndex].produceDate.value"
															data-ng-disabled="sourceData.readonly();"/>
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">鏈夋晥鏃ユ湡</label>
												<div class="col-sm-8">
														<input type="text" class="form-control" simple-datepicker orientation="top auto"
															data-ng-model="sourceData.rows[sourceData.currentIndex].validDate.value"
															data-ng-disabled="sourceData.readonly();"/>
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">澶嶆鏃ユ湡</label>
												<div class="col-sm-8">
														<input type="text" class="form-control" simple-datepicker orientation="top auto"
															data-ng-model="sourceData.rows[sourceData.currentIndex].checkoutAgainDate.value"
															data-ng-disabled="sourceData.readonly();"/>
												</div>
											</div>
										</div>
										<div class="col-sm-3">
											<div class="form-group form-group-sm">
												<label class="col-sm-4 control-label">鏈夋晥澶╂暟</label>
												<div class="col-sm-8">
													<input type="number" class="form-control"
														data-ng-model="sourceData.rows[sourceData.currentIndex].validDays.value"
														data-ng-readonly="true" />
												</div>
											</div>
										</div>
									</div>
	<div class="row">
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍝佺墝</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].brandLabel.value"
						name="brandLabel" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">浜у湴</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].placeOrigin.value"
						name="placeOrigin" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>

		<div class="col-sm-6">
			<div class="form-group form-group-sm">
				<label class="col-sm-2 control-label">鍒堕�犲晢</label>
				<div class="col-sm-10">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].manufacturer.value"
						data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>

	</div>
</form>

</tab> 
<tab> <tab-heading> 閲嶉噺/灏哄/杩愯垂 </tab-heading> <br>

<form class="form-horizontal">
	<div class="row">

		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">閲嶉噺KG</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].itemWeight.value"
						name="itemWeight" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍖呰閲嶉噺</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].orderWeight.value"
						name="orderWeight" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">浣撶НM3</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].itemSize.value"
						name="itemSize" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍖呰浣撶Н</label>
				<div class="col-sm-8">
					<input type="text" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].orderSize.value"
						name="orderSize" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>

	</div>
	<div class="row">
		<div class="col-sm-3" ng-hide="true">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">杩愯垂</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].freightAmount.value"
						name="freightAmount" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3" ng-hide="true">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鍏朵粬璐圭敤</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].apportionAmount.value"
						name="apportionAmount" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
		<div class="col-sm-3" ng-show="sourceData.rows[sourceData.currentIndex].billType.value=='CGRK' || sourceData.rows[sourceData.currentIndex].billType.value=='CGCK'">
			<div class="form-group form-group-sm">
				<label class="col-sm-4 control-label">鎵ｆ閲戦</label>
				<div class="col-sm-8">
					<input type="number" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].deductAmount.value"
						name="deductAmount" data-ng-readonly="sourceData.readonly();" />
				</div>
			</div>
		</div>
	</div>
</form>

</tab>
<tab> <tab-heading> 澶囨敞 </tab-heading> <br>

<form class="form-horizontal">

	<div class="row">
		<div class="col-sm-12">

			<div class="form-group">
				<label class="col-sm-1 control-label">澶囨敞</label>
				<div class="col-sm-11">
					<textarea rows="3" class="form-control"
						data-ng-model="sourceData.rows[sourceData.currentIndex].comments.value"
						data-ng-readonly="sourceData.readonly();">
					</textarea>
				</div>
			</div>

		</div>
	</div>
</form>
</tab> 
</tabset>
<br>
<br>